<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-robot-edit" th:object="${robot}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
			<!--<input name="gameId" type="hidden" id="treeId" th:field="*{gameId}"/>
			<div class="form-group">
				<label class="col-sm-3 control-label">游戏：</label>
				<div class="col-sm-8">
					<input id="treeName" name="gameName" th:field="*{gameName}" class="form-control" type="text" onclick="selectGameTree()" readonly="true">
				</div>
			</div>-->
			<div class="form-group">	
				<label class="col-sm-3 control-label">进入数量：</label>
				<div class="col-sm-8">
					<input id="robotNum" name="robotNum" th:field="*{robotNum}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">时间波动：</label>
				<div class="col-sm-8">
					<input id="timeRange" name="timeRange" th:field="*{timeRange}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">中奖概率：</label>
				<div class="col-sm-8">
					<input id="winProbability" name="winProbability" th:field="*{winProbability}" class="form-control" type="text">
				</div>
			</div>
			<!--<div class="form-group">
				<label class="col-sm-3 control-label">中奖概率浮动值：</label>
				<div class="col-sm-8">
					<input id="winVariance" name="winVariance" th:field="*{winVariance}" class="form-control" type="text">
				</div>
			</div>-->
		</form>
    </div>
    <div th:include="include::footer"></div>
	<script th:src="@{/ruoyi/common.js}"></script>
    <script type="text/javascript">
		var prefix = ctx + "jl/robot";
		$("#form-robot-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-robot-edit').serialize());
	        }
	    }

		/*用户管理-新增-选择部门树*/
        /*function selectGameTree() {
            var treeId = $("#treeId").val();
            var gameId = $.common.isEmpty(treeId) ? "0" : $("#treeId").val();
            var url = ctx + "jl/game/selectGameTree/" + gameId;
            var options = {
                title: '选择游戏',
                width: "380",
                url: url,
                callBack: doSubmit
            };
            $.modal.openOptions(options);
        }

        function doSubmit(index, layero){
            var tree = layero.find("iframe")[0].contentWindow.$._tree;
            if ($.tree.notAllowParents(tree)) {
                var body = layer.getChildFrame('body', index);
                $("#treeId").val(body.find('#treeId').val());
                $("#treeName").val(body.find('#treeName').val());
                layer.close(index);
            }
        }*/
	</script>
</body>
</html>
